<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- 矢量图  BFC  -->
     <!-- xmlns 只有在这个版本中才有rect -->
    <svg
        xmlns="http://www.w3.org/2000/svg" 
       
        version="'1.1"
        width="400"
        height="200"
        viewBox="0,0,400,200"
    >
    <!-- svg内可以声明图形 -->
        <rect
        height="95"
        width="95"
        
        x="5"
        y="5"
        stroke="yellow"
        stroke-width="10"
        fill="red"
        />
        <text
        fill="black"
        font-family="PingFangSC-Regular,sans-serif"
        x="150"
        y="100" 
        
        >
            hello world
        </text>

    
    </svg>

</body>
</html>